<?php

use swap\visitor;

class user_controller extends \swap\controller {
	
	public static $layout = 'my';
	
	public static function before_run() {
		self::role('user', 'redirect_to', 'my-site/login');
	}
	
	public static function index_action() {
		self::show_page();
	}
	
	public static function edit_action() {
		$user_id = visitor::get_role_id('user');
		
		self::show_page();
	}
	
}